package hnlg.com.cn.systemmanage.zhenqumanage.junit;

import javax.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import hnlg.com.cn.model.ZhenquVo;
import hnlg.com.cn.systemmanage.zhenqumanage.service.IZhenquService;
@SpringBootTest
@RunWith(SpringRunner.class)
public class ZhenquServiceImplTest {
@Resource IZhenquService ZhenquService;
	@Test
	public void testAddZhenqu() throws Exception {
		ZhenquVo vo=new ZhenquVo();
		vo.setName("张家镇");
		ZhenquService.addZhenqu(vo);
	}

	@Test
	public void testDeleteZhenqu() throws Exception {
		ZhenquService.deleteZhenqu("1");
	}

	@Test
	public void testUpdateZhenqu() throws Exception {
		ZhenquVo vo=new ZhenquVo();
		vo.setName("鹏区");vo.setId("2");
		ZhenquService.updateZhenqu(vo);
	}
   @Test
   public void testQueryZhenqu()throws Exception{
	   ZhenquVo vo=new ZhenquVo();
	   ZhenquService.queryzhenqu(vo);
   }
   @Test
   public void testDeletezhenqubatch()throws Exception{
	   String arr[]={"2","3"};
	   boolean flag=ZhenquService.deletezhenqubatch(arr);
	   System.out.println("flag=="+flag);
   }
   
}
